wayland: Ensure we keep our internal state when hiding a window with no surface
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 16 Sep 2013 22:36:18 +0000 (18:36 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 28 Oct 2013 22:03:26 +0000 (18:03 -0400)
We need to keep track of the mapped variable here.

gdk/wayland/gdkwindow-wayland.c

index b5e9036ce754391330d27f9f4b25175a78fa8c20..6fdbc7792215db5aa3965a8b951dd812265b6871 100644 (file)
@@ -1123,8 +1123,9 @@ gdk_wayland_window_hide_surface (GdkWindow *window,
       impl->shell_surface = NULL;
       cairo_surface_destroy (impl->server_surface);
       impl->server_surface = NULL;
-      impl->mapped = FALSE;
     }
+
+  impl->mapped = FALSE;
 }
 
 static void